package com.Poly02;

public class manager extends Employee {
    private double bonus;
    public manager(String name, double salary, double bonus) {
        super(name, salary);
        this.bonus = bonus;
    }
    public void manage(){
        System.out.println("经理 "+getName()+" 正在管理业务");
    }

    @Override
    public double getAnnualSalary() {
        return super.getAnnualSalary()+this.bonus;
    }
}
